package org.example.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.example.util.StringUtil;

@Data
public class Book {
    @TableId(type = IdType.AUTO)
    private String id;
    private String categoryId;
    private String name;
    private String author;
    private String publisher;
    private String price;
    private String imageName;
    private String description;
    @TableField(fill = FieldFill.INSERT)
    private String createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateTime;
    //设置局部逻辑删除方式
    //@TableLogic(delval = "0", value = "1")
    private Integer status;
    private Integer isDeleted;
    private Integer imageState;
}
